package aom.ju.ss.utils

import android.os.Message
import org.greenrobot.eventbus.EventBus

class SendMsg {

    companion object {


        fun sendEvent(event: Int) {
            val message = Message.obtain()
            message.arg1 = event
            EventBus.getDefault().post(message)
        }


        fun sendEvent(event: Int, msg: String) {
            val message = Message.obtain()
            message.obj = msg
            message.arg1 = event
            EventBus.getDefault().post(message)
        }

    }
}